/**
 * 家具类型
 */
export enum FurnitureCategory {
  CHAIR = "chair", // 椅子
  BENCH = "bench", // 长椅
  ARMCHAIR = "armchair", // 单人沙发
  SOFA = "sofa", // 沙发
  TABLE = "table", // 桌子
  COFFEE_TABLE = "coffee_table", // 茶几
  SIDE_TABLE = "side_table", // 小茶几
  LONG_TABLE = "long_table", // 长桌
  BOOKSHELF = "bookshelf", // 书架
  DRESSER = "dresser", // 梳妆台
  FIREPLACE = "fireplace", // 壁炉
  RUG = "rug", // 地毯
  CUSHION = "cushion", // 垫子
  LIGHTING = "lighting", // 灯具
  WINDOW = "window", // 窗户
  TV = "tv", // 电视机
  BED = "bed", // 床
  DECORATIVE_PLANT = "decorative_plant", // 装饰植物
  HANGING_DECORATIVE_PLANT = "hanging_decorative_plant", // 悬挂式装饰植物
  WALL_PAINTING = "wall_painting", // 挂画
  NIGHT_MARKET_PAINTING = "night_market_painting", // 夜市画
  PORTRAIT = "portrait", // 肖像
  MOVIE_POSTER = "movie_poster", // 电影海报
  DECORATIVE_DOOR = "decorative_door", // 装饰门
  CURTAIN = "curtain", // 帘子
  WALL_DECORATION = "wall_decoration", // 墙壁装饰
  FISH_TANK = "fish_tank", // 鱼缸
  TORCH = "torch", // 火炬
  LARGE_DECORATION = "large_decoration", // 大型装饰
  SMALL_DECORATION = "small_decoration", // 小型装饰
  SPECIAL_ITEM = "special_item", // 特殊物品
  SECRET_ITEM = "secret_item", // 秘密物品
}

export interface FurnitureConfig {
  id: string;
  name: string;
  description: string;
  category: FurnitureCategory;
  imageUrl: string;
  sourceRect: {
    x: number; // 图片中的x坐标
    y: number; // 图片中的y坐标
    width: number; // 图片中的宽度
    height: number; // 图片中的高度
    offsetX: number; // 相对于渲染位置的x偏移量
    offsetY: number; // 相对于渲染位置的y偏移量
  };
  size: {
    width: number; // 渲染的宽度
    height: number; // 渲染的高度
  };
  // 碰撞区域
  collisionArea?: {
    offsetX: number;
    offsetY: number;
    width: number;
    height: number;
  };
  interactable: boolean; // 是否可交互
  rotatable: boolean; // 是否可旋转
}
